package com.nicefact.mailmonitor.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nicefact.mailmonitor.dao.BlobHistoryDao;
import com.nicefact.mailmonitor.entity.BlobHistory;

@Service
public class BlobHistoryService {
	
	@Autowired BlobHistoryDao blobHistoryDao;;
	
	public List<BlobHistory> getAll(){
		return blobHistoryDao.getAll();
	}
	
	public List<BlobHistory> getLastTenUploads(String createdBy){
		return blobHistoryDao.getLastTenUploads(createdBy);
	}
	
	public BlobHistory save(BlobHistory blobHistory){
		return blobHistoryDao.create(blobHistory);
	}

}
